<?php

ob_start('ob_gzhandler');

header('Content-type: text/javascript; charset: UTF-8');
header("Cache-Control: must-revalidate");
$offset = 60 * 60 ;
$ExpStr = "Expires: " .
gmdate("D, d M Y H:i:s",
time() + $offset) . " GMT";
header($ExpStr);

define('BASE_DIR', '../../../');

set_include_path(BASE_DIR . 'vendor' . PATH_SEPARATOR . get_include_path());

require_once('Zend/Session/Namespace.php');

$session = new Zend_Session_Namespace('silk_cms_assets___');

foreach ($session->scripts as $script){
   echo $script . "\n\n";
}

ob_end_flush();
?>